#计算挖掘总次数
scoreboard players operation $fisland_t_minet fisland_minetime = @s fisland_mined
scoreboard players operation $fisland_t_minet fisland_minetime += @s fisland_mineg
scoreboard players operation $fisland_t_minet fisland_minetime += @s fisland_minei
scoreboard players operation $fisland_t_minet fisland_minetime += @s fisland_minen
scoreboard players operation $fisland_t_minet fisland_minetime += @s fisland_mines
scoreboard players operation $fisland_t_minet fisland_minetime += @s fisland_minew
scoreboard players operation @s fisland_minetime = $fisland_t_minet fisland_minetime
#升级
scoreboard players set @s[scores={fisland_minetime=0..700}] fisland_sk_mine 1
scoreboard players set @s[scores={fisland_minetime=701..2000}] fisland_sk_mine 2
scoreboard players set @s[scores={fisland_minetime=2001..7000}] fisland_sk_mine 3
scoreboard players set @s[scores={fisland_minetime=7001..15000}] fisland_sk_mine 4
scoreboard players set @s[scores={fisland_minetime=15001..}] fisland_sk_mine 5
#trigger
execute as @s[scores={fisland_tri_mine=1}] run function fislandpp:skill/mine/display
#给予挖掘等级高的玩家急迫
effect give @a[scores={fisland_sk_mine=3}] haste 1 0
effect give @a[scores={fisland_sk_mine=4}] haste 1 1
effect give @a[scores={fisland_sk_mine=5}] haste 1 2